package org.come.control;

import com.tool.image.ManimgAttribute;
import com.tool.tcp.NewPart;
import com.tool.tcp.SpriteFactory;
import come.tool.JDialog.TiShiUtil;
import org.come.Frame.ExitGameTipJframe;
import org.come.Frame.OptionsJframe;
import org.come.action.FromServerAction;
import org.come.action.MapAction;
import org.come.bean.ConfirmBean;
import org.come.socket.Agreement;
import org.come.socket.AgreementUtil;
import org.come.socket.SendMessageUntil;
import org.come.until.*;

public class ServerMesControl implements FromServerAction {
    public class  Dingshi2 extends Thread{//黄大小

        public 	Dingshi2( ){

        }
        public void run(){

            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

//            ZhuFrame.getZhuJpanel().addPrompt("很遗憾，你本次游戏中未获得奖励！请下次再来！谢谢");


        }
    }
    public void Huang(String[] mes1){//黄大小
        ManimgAttribute.part3=  SpriteFactory.createPart("骰子全/骰子转动特效", -2, 5, null);
        ManimgAttribute.dianshu[0]=mes1[1];
        ManimgAttribute.dianshu[1]=mes1[2];
//        int k=Integer.parseInt(mes1[3]);
//        if (k==1){
//            ManimgAttribute.zhongjiang="tou";
//        }else if (k==2){
//            ManimgAttribute.zhongjiang="shuang";
//        }else if (k==3){
//            ManimgAttribute.zhongjiang="qi";
//        }else if (k==4){
//            ManimgAttribute.zhongjiang="san";
//        }else {

        Dingshi2 dingshi2=new Dingshi2();
        dingshi2.start();


//        }
        String b=null;
        for (int f=0;f<=1;f++){
            b="骰子全/"+ManimgAttribute.dianshu[f]+"点";
            NewPart partadd=SpriteFactory.createPart(b, -2, 5, null);
            ManimgAttribute.partList.add(partadd);
        }
    }
    @Override
    public void controlMessFromServer(String mes, final String type) {
        String ab = mes.substring(0, 4);
        String ReceiveMes = null;
        final FromServerAction action = MapAction.serverAction.get(ab);
        if (action != null) {
            if ("move".equals(ab) || "fig1".equals(ab) || "fig4".equals(ab) || "fig7".equals(ab)) {//帮派捐钱没动静改这里
                ReceiveMes = mes.substring(6);
                action.controlMessFromServer(ReceiveMes, ab);
            } else {
                mes = Agreement.getAgreement().MonitorAgreement(0, mes);
                SendMessageUntil.toServer(mes);
                JmSum.xiugaiqi();
            }
            return;
        }
        System.out.println("接收的数据:" + mes);
        mes = NewAESUtil.AESJDKDncode(mes);
        System.out.println("解密的数据:" + mes);
        if (mes == null) {
            //system.out.println("空数据");
            return;
        }
        final int wz = mes.indexOf("//");
        if (wz == -1) {
            return;
        }
        ReceiveMes = mes.substring(wz + 2);
        ab = mes.substring(0, wz);
//        //system.out.println("协议头:" + ab + ",内容:" + ReceiveMes);
        Label_4435:
        {
            Label_4125:
            {
                Label_4100:
                {
                    Label_4075:
                    {
                        Label_4003:
                        {
                            final String s;
                            switch (s = ab) {
                                case "kejunpc"://科举
                                    MapAction.serverAction.get(AgreementUtil.kejunpc).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                case "titlelist":
                                case "titlechange": {
                                    break Label_4075;
                                }
                                case "shopPrice": {
                                    MapAction.serverAction.get("shopPrice").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "searcahChatRoleId":
                                case "searchChatRecorde":
                                case "searcahChatRoleName": {
                                    break Label_4125;
                                }
                                case "servers top": {
                                    MapAction.flagAction.put(SendMessageUntil.gameServerKey, false);
                                    MapAction.nettyAction.get(SendMessageUntil.gameServerKey).channel().close();
                                    MapAction.nettyAction.put(SendMessageUntil.gameServerKey, null);
                                    final ExitGameTipJframe exitGameTipJframe1 = new ExitGameTipJframe();
                                    exitGameTipJframe1.getExitGameTipJpanel().getLabtip().setText("服务器重新启动，您已经掉线!!!!");
                                    exitGameTipJframe1.setLocation(400, 300);
                                    return;
                                }
                                case "CBGCollect": {
                                    MapAction.serverAction.get("CBGCollect").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "friendchat": {
                                    Music.addyinxiao("好友信件提示音.mp3");
                                    MapAction.serverAction.get("friendchat").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "loginerror":
                                case "createsuccess":
                                case "rigistersuccess":
                                case "createerror":
                                case "rigistererror":
                                case "loginsuccess": {
                                    break Label_4003;
                                }
                                case "ganglist": {
                                    MapAction.serverAction.get("ganglist").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "inlinelogin": {
                                    MapAction.flagAction.put(SendMessageUntil.gameServerKey, false);
                                    MapAction.nettyAction.get(SendMessageUntil.gameServerKey).channel().close();
                                    MapAction.nettyAction.put(SendMessageUntil.gameServerKey, null);
                                    final ExitGameTipJframe exitGameTipJframe2 = new ExitGameTipJframe();
                                    exitGameTipJframe2.setLocation(400, 300);
                                    return;
                                }
                                case "battleconnection": {
                                    MapAction.serverAction.get("battleconnection").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "UnPhoneBang": {
                                    MapAction.serverAction.get("UnPhoneBang").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "chongjipackget": {
                                    MapAction.serverAction.get("chongjipackget").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "DUELBOARD": {
                                    MapAction.serverAction.get("DUELBOARD").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "getfivemsg": {
                                    MapAction.serverAction.get("getfivemsg").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "hatchvalue": {
                                    MapAction.serverAction.get("hatchvalue").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "obtainarticle": {
                                    MapAction.serverAction.get("obtainarticle").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "bangtz": {
                                    MapAction.serverAction.get("bangtz").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "extrattroper": {
                                    MapAction.serverAction.get("extrattroper").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "enlist":
                                case "team6":
                                case "team1":
                                case "team2":
                                case "team3":
                                case "team4": {
                                    break;
                                }
                                case "friend": {
                                    MapAction.serverAction.get("friend").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "TransGood": {
                                    MapAction.serverAction.get("TransGood").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "addgood": {
                                    MapAction.serverAction.get("addgood").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "lingxi": {
                                    MapAction.serverAction.get("lingxi").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "middle": {
                                    MapAction.serverAction.get("middle").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "prompt": {
                                    String []mes1=ReceiveMes.split("-");//黄大小
                                    if (mes1[0].equals("H")){
                                        Huang(mes1);
                                        break;
                                    }
                                    MapAction.serverAction.get("prompt").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "rolelevelup": {
                                    MapAction.serverAction.get("rolelevelup").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "creepsfight": {
                                    MapAction.serverAction.get("creepsfight").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "userretreat": {
                                    MapAction.serverAction.get("userretreat").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case AgreementUtil.enterGame: {
                                    MapAction.serverAction.get(AgreementUtil.enterGame).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "ACCOUNT_LOGIN": {// 登录结果
                                    MapAction.serverAction.get("ACCOUNT_LOGIN").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch1": {
                                    MapAction.serverAction.get("CBGSearch1").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch2": {
                                    MapAction.serverAction.get("CBGSearch2").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch3": {
                                    MapAction.serverAction.get("CBGSearch3").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch4": {
                                    MapAction.serverAction.get("CBGSearch4").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch5": {
                                    MapAction.serverAction.get("CBGSearch5").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch6": {
                                    MapAction.serverAction.get("CBGSearch6").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGSearch7": {
                                    MapAction.serverAction.get("CBGSearch7").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "changerolename": {
                                    MapAction.serverAction.get("changerolename").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "shopGood": {
                                    MapAction.serverAction.get("shopGood").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "UidAndQidForRole": {
                                    MapAction.serverAction.get("UidAndQidForRole").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "unmarry":
                                case "makelove":
                                case "marry": {
                                    break Label_4100;
                                }
                                case "ACCOUNT_BINDING": {// 绑定信息返回
                                    MapAction.serverAction.get("ACCOUNT_BINDING").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "teamArena": {
                                    MapAction.serverAction.get("teamArena").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "laddArena":
                                    MapAction.serverAction.get(AgreementUtil.ladderArena).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                case "1": {
                                    MapAction.serverAction.get("1").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "npc": {
                                    MapAction.serverAction.get("npc").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "pet": {
                                    MapAction.serverAction.get("pet").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "tip": {
                                    MapAction.serverAction.get("tip").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "baby": {
                                    MapAction.serverAction.get("baby").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "chat": {
                                    MapAction.serverAction.get("chat").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "ZHU_SHOU"://星盘
                                    MapAction.serverAction.get(AgreementUtil.ZHU_SHOU).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                case "xinyuan"://心猿
                                    MapAction.serverAction.get("xinyuan").controlMessFromServer(ReceiveMes, ab);
                                    break;
                                case "fig4": {
                                    MapAction.serverAction.get("fig4").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "fig5": {
                                    //***********************”看我的“ 孩子音效添加 begin**********************
                                    if (mes.contains("看我的#Y") && mes.contains("#46")) {

                                        Music.addyinxiao("孩子喊话.mp3");
                                        Music.addyinxiao("小孩放法.mp3");
                                    }

                                    //***********************”看我的“ 孩子音效添加 end**********************
                                    MapAction.serverAction.get("fig5").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "fig6": {
                                    MapAction.serverAction.get("fig6").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "fig7": {
                                    MapAction.serverAction.get("fig7").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "fig8": {
                                    MapAction.serverAction.get("fig8").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "hjsl": {
                                    MapAction.serverAction.get("hjsl").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case AgreementUtil.move: {
                                    MapAction.serverAction.get(AgreementUtil.move).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "pawn": {
                                    MapAction.serverAction.get("pawn").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "shop": {
                                    MapAction.serverAction.get("shop").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "asset": {
                                    MapAction.serverAction.get("asset").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "labor": {
                                    MapAction.serverAction.get("labor").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "mount": {
                                    MapAction.serverAction.get("mount").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "fly"://飞行器
                                    MapAction.serverAction.get(AgreementUtil.fly).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                case "richm": {
                                    MapAction.serverAction.get("richm").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "scene": {
                                    MapAction.serverAction.get("scene").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "stall": {
                                    MapAction.serverAction.get("stall").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "taskN": {
                                    MapAction.serverAction.get("taskN").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case AgreementUtil.SaleCardSearch: {
                                    MapAction.serverAction.get(AgreementUtil.SaleCardSearch).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case AgreementUtil.SaleCardMySearch: {
                                    MapAction.serverAction.get(AgreementUtil.SaleCardMySearch).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "vicon": {
                                    MapAction.serverAction.get("vicon").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "Dayforweekgradeget": {
                                    MapAction.serverAction.get("Dayforweekgradeget").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "drawnitemsfail": {
                                    MapAction.serverAction.get("drawnitemsfail").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "TransState": {
                                    MapAction.serverAction.get("TransState").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "gangchange": {
                                    MapAction.serverAction.get("gangchange").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "version": {// 表示与服务器连接成功
                                    MapAction.serverAction.get("version").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "babycustoday": {
                                    MapAction.serverAction.get("babycustoday").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "AREASTATUES": {// 获取所选区状态
                                    MapAction.serverAction.get("AREASTATUES").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "bindingMobile": {
                                    MapAction.serverAction.get("bindingMobile").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "intogame": {
                                    MapAction.serverAction.get("intogame").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "intogang": {
                                    MapAction.serverAction.get("intogang").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "drawnitems": {
                                    MapAction.serverAction.get("drawnitems").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "LOGINVERSION": {// 确定版本号
                                    MapAction.serverAction.get("LOGINVERSION").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "racialtransformation": {
                                    MapAction.serverAction.get("racialtransformation").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "confirm": {
                                    final ConfirmBean confirmBean = GsonUtil.getGsonUtil().getgson().fromJson(ReceiveMes, ConfirmBean.class);
                                    OptionsJframe.getOptionsJframe().getOptionsJpanel().showBox(TiShiUtil.confirm, (Object) confirmBean, confirmBean.getMSG());
                                    confirmBean.setMSG((String) null);
                                    return;
                                }
                                case "PhoneBang": {
                                    MapAction.serverAction.get("PhoneBang").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "ROLEQIANDAO": {
                                    MapAction.serverAction.get(AgreementUtil.ROLEQIANDAO).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case "APPQIANDAO": {
                                    MapAction.serverAction.get(AgreementUtil.APPQIANDAO).controlMessFromServer(ReceiveMes, ab);
                                }
                                case "PhoneNumberReturn": {
                                    MapAction.serverAction.get("PhoneNumber").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "Getvipgradepack": {
                                    MapAction.serverAction.get("Getvipgradepack").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "bookofchalg": {
                                    MapAction.serverAction.get("bookofchalg").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
//                                case "jiqiren":
//                                    MapAction.serverAction.get(AgreementUtil.jiqiren).controlMessFromServer(ReceiveMes, ab);
//                                    break;
                                case "applypay": {
                                    MapAction.serverAction.get("applypay").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "pankinglist": {
                                    MapAction.serverAction.get("pankinglist").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "npcdialog": {
                                    MapAction.serverAction.get("npcdialog").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "givegoods": {
                                    MapAction.serverAction.get("givegoods").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "givemoney": {
                                    MapAction.serverAction.get("givemoney").controlMessFromServer(ReceiveMes, ab);//帮派捐钱没动静改这里
                                    return;
                                }
                                case "stallstate": {
                                    MapAction.serverAction.get("stallstate").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "Dayforoneget": {
                                    MapAction.serverAction.get("Dayforoneget").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "Paydaygradepay": {
                                    MapAction.serverAction.get("Paydaygradepay").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "RETAREA": {
                                    MapAction.serverAction.get("RETAREA").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "PhoneNumberIsNoGet": {
                                    MapAction.serverAction.get("PhoneNumberIsNoGet").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "rolechange": {
                                    MapAction.serverAction.get("rolechange").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "gangstate": {
                                    MapAction.serverAction.get("gangstate").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "oneArena": {
                                    MapAction.serverAction.get("oneArena").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "CBGBuy": {
                                    break Label_4435;
                                }
                                case "CBGMes": {
                                    MapAction.serverAction.get("CBGMes").controlMessFromServer(ReceiveMes, ab);
                                    break Label_4435;
                                }
                                case "upRoleShow": {
                                    MapAction.serverAction.get("upRoleShow").controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "monsterrefresh": {
                                    MapAction.serverAction.get(MessageProcessUntil.monster).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case "rolechange1": {//星盘
                                    MapAction.serverAction.get(AgreementUtil.rolechange1).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }

                                case AgreementUtil.QD: {
                                    MapAction.serverAction.get(AgreementUtil.QD).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                //烧香
                                case AgreementUtil.shaoxiang: {
                                    MapAction.serverAction.get(AgreementUtil.shaoxiang).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case "stallmessage":{
                                    MapAction.serverAction.get("stallmessage").controlMessFromServer(ReceiveMes,ab);
                                    break;}
                                //全民竞猜
                                case AgreementUtil.QMJC: {
                                    MapAction.serverAction.get(AgreementUtil.QMJC).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case "shouhu":{
                                    MapAction.serverAction.get("shouhu").controlMessFromServer(ReceiveMes,ab);
                                    break;
                                }
                                case AgreementUtil.HDX:{
                                    MapAction.serverAction.get(AgreementUtil.HDX).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case AgreementUtil.autotasklist: {
                                    MapAction.serverAction.get(AgreementUtil.autotasklist).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case AgreementUtil.selllianghao: {
                                    MapAction.serverAction.get(AgreementUtil.selllianghao).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                                case AgreementUtil.ROLEACHIEVE: {
                                    MapAction.serverAction.get(AgreementUtil.ROLEACHIEVE).controlMessFromServer(ReceiveMes, ab);
                                    return;
                                }
                                case AgreementUtil.UPDATETEXT:{
                                    MapAction.serverAction.get(AgreementUtil.UPDATETEXT).controlMessFromServer(ReceiveMes, ab);
                                    break;
                                }
                            }
                            MapAction.serverAction.get("team1").controlMessFromServer(ReceiveMes, ab);
                            return;
                        }
                        MapAction.serverAction.get(ab).controlMessFromServer(ReceiveMes, ab);
                        return;
                    }
                    MapAction.serverAction.get(MessageProcessUntil.titlelist).controlMessFromServer(ReceiveMes, ab);
                    return;
                }
                MapAction.serverAction.get(MessageProcessUntil.marry).controlMessFromServer(ReceiveMes, ab);
                return;
            }
            MapAction.serverAction.get("searcahChatRoleId").controlMessFromServer(ReceiveMes, ab);
            return;
        }
        MapAction.serverAction.get("CBGBuy").controlMessFromServer(ReceiveMes, ab);

    }

}
